import React, { Component } from 'react';
import { connect } from 'react-redux';
import actions from '../store/actions/Counter';
class Counter extends Component {
  render() {
    return (
      <div>
        <p>{this.props.number}</p>
        <button className="btn btn-primary" onClick={this.props.increment}>+</button>
      </div>
    )
  }
}
const Index = connect(
  state => state.counter,
  actions
)(Counter)
export default Index